package com.cn.api.error;

@SuppressWarnings("serial")
public class ExceptionExpand extends Exception {
	private ExceptionResponse er;
	private int code;
	private String message;

	public ExceptionExpand(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public ExceptionResponse exception() {

		return ExceptionResponse.create(code, message);
	}

	public ExceptionResponse getEr() {
		return er;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
